package com.jkoss.wine.customer.service.impl;

import com.jkoss.wine.customer.entity.Shop;
import com.jkoss.wine.customer.mapper.ShopMapper;
import com.jkoss.wine.customer.service.IShopService;
import com.baomidou.mybatisplus.mapper.SqlHelper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;


/**
 * 店铺 服务实现类
 * 
 * @Author Jason
 * @Version 1.0, 2019-08-12
 * @See
 * @Since com.jkoss.wine.customer.service.impl
 * @Description: TODO
 */
@Service
public class ShopServiceImpl extends ServiceImpl<ShopMapper, Shop> implements IShopService {

	@Override
	public Page selectVoByPage(Page page, Wrapper wrapper) {
		SqlHelper.fillWrapper(page, wrapper);
		page.setRecords(baseMapper.selectVoByPage(page, wrapper));
		return page;
	}

	@Override
	public List selectVo(Wrapper wrapper) {
		List list = baseMapper.selectVo(wrapper);
		return list;
	}

}
